package com.dao.impl;

import java.util.ArrayList;
import java.util.List;


import com.bo.Role;
import com.bo.User;
import com.dao.RoleDAO;
import com.dao.exceptions.EntityNotFoundException;

public class RoleDaoImpl extends GenericDaoImpl<Role, String> implements RoleDAO{

	public RoleDaoImpl(){
		super(Role.class);
	}
	
	public RoleDaoImpl(Class<Role> pPersistentClass) {
		super(pPersistentClass);
	}

	
	public List<User> getResponsables() throws EntityNotFoundException{
		List<User> list=new  ArrayList<User>(findById("resp").getUsers());
		return list;
	}
	

}
